# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo11
# Description:
# Author:       98745
# Date:         2019/3/11
#-------------------------------------------------------------------------------

from numpy import *
a=arange(20).reshape(4,5)
print(a)
try:
    savetxt('a.txt',a,fmt='%d',delimiter=',')
    print('-------------------')
    b=loadtxt('a.txt',dtype=int,delimiter=',',usecols=(1))
    print(b)
    print('----------------')
    x,y=loadtxt('a.txt',dtype=int,delimiter=',',usecols=(1),unpack=True)
    print(x)
    print('--------------')
    print(y)
except Exception as e:
    print(e)
